/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chameleon.view;

/**
 * This class represent the input for the system. At the moment the input
 * is just the console. At the future to modify this input is just necessary
 * to modify this class.
 *
 * It's the only connection between programm and user.
 */

/**
 *
 * @author Simon De Baets
 */

// Import section

import java.io.IOException;
import java.util.Scanner;
import java.util.Vector;


public class InputManager {


    //****************** CONSTRUCTOR ******************************//

    public InputManager(){
    }

    
    //**************** METHOD **********************************************//

    public String readInputTool(Vector<String> toolPurpose) throws IOException{
        //This method purpose to the user all tool implements by chameleon

        Scanner sc = new Scanner(System.in);

        String toolName = sc.nextLine();

        if (!toolPurpose.contains(toolName))
            return "error";
        return toolName;
    }

    public String readInputFile () throws IOException{
        Scanner sc = new Scanner(System.in);
        System.out.println("Give the file : ");
       return sc.nextLine();
    }

    public String readInputString(){
       Scanner sc = new Scanner(System.in);
       return sc.nextLine();
    }

    public int readInputInt(){
       Scanner sc = new Scanner(System.in);
       return sc.nextInt();
    }

}

